package xyz.xtt.admin.listener;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author Jim kwok
 * @since 2025/3/2
 */
@Configuration
public class AsyncThreadExecutor {
    /**
     * 资产处理线程池服务
     * @return ExecutorService
     */
    @Bean("FixThreadEventExecutor")
    ExecutorService fixThreadExecutor(){
        return Executors.newFixedThreadPool(5);
    }
}
